package com.xmall.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xmall.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 后台用户权限表
 * </p>
 *
 * @author liuzh
 * @since 2020-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysPermission对象", description = "后台用户权限表" )
public class SysPermission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "父级权限id" )
    private Long pid;

    @ApiModelProperty(value = "名称" )
    private String name;

    @ApiModelProperty(value = "权限值" )
    private String value;

    @ApiModelProperty(value = "图标" )
    private String icon;

    @ApiModelProperty(value = "权限类型：0->目录；1->菜单；2->按钮（接口绑定权限）" )
    private Integer type;

    @ApiModelProperty(value = "前端资源路径" )
    private String uri;

    @ApiModelProperty(value = "启用状态；0->禁用；1->启用" )
    private Integer status;

    @ApiModelProperty(value = "创建时间" )
    private java.util.Date createTime;

    @ApiModelProperty(value = "排序" )
    private Integer sort;


}
